package com.leyou;

import com.leyou.gateway.properties.JwtProperties;
import com.leyou.gateway.properties.AllowPathsProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * Created by IntelliJ IDEA.
 *
 * @author: wangzibeng
 * Date: 2019/4/24 0024
 * Time: 8:55
 */

@EnableZuulProxy
@SpringCloudApplication
@EnableConfigurationProperties(value = {AllowPathsProperties.class, JwtProperties.class})
@EnableFeignClients
@EnableScheduling
public class GateWayApplication {
    public static void main(String[] args) {
        SpringApplication.run(GateWayApplication.class, args);
    }
}
